﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace NewSeasonFinder
{
    public partial class Form_FileDetails : Form
    {
        private FileInfo fileInfo;
        public Form_FileDetails(FileInfo _fileInfo)
        {
            InitializeComponent();
            fileInfo = _fileInfo;
            label_Name.Text += string.Format("{0}", fileInfo.Name);
            label_Location.Text += string.Format("{0}", fileInfo.Directory);
            label_Size.Text += string.Format("{0:N} Mb", (double)fileInfo.Length/1024*1024);
        }

        private void button_OK_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button_OpenLocation_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(fileInfo.Directory.ToString());
        }
    }
}
